<template>
	<view class="box">
		<view class="title">春日精选套装</view>
		<view class="list">
			<view class="item" v-for="(item,index) in list" :key="index">
				<image class="cover" :src="item.package_image"></image>
				<view class="name">{{item.package_name}}</view>
				<view class="desc">{{item.act_desc}}</view>
				<view class="price">
					<view class="price_btn">
						到手价 ￥<text class="price_btn_text">{{item.ext_info.package_price}}</text>
					<u-icon name="play-right-fill" color="#ffffff" size="32"></u-icon></view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			list: {
				type: Array,
				default: []
			}
		}
	}
</script>

<style lang="scss" scoped>
.box {
	.title {
		font-size: 32rpx;
		color: #333333;
		text-align: center;
		font-weight: 700;
	}
	.list {
		margin-top: 20rpx;
		display: flex;
		align-items: center;
		flex-wrap: wrap;
		justify-content: space-between;
		.item {
			width: 350rpx;
			height: 450rpx;
			position: relative;
			overflow: hidden;
			margin-bottom: 10rpx;
			.cover {
				width: 350rpx;
				height: 450rpx;
				border-radius: 10rpx;
				position: absolute;
				top: 0;
				left: 0;
				right: 0;
				bottom: 0;
				z-index: 0;
			}
			.name {
				position: absolute;
				top: 20rpx;
				left: 0;
				right: 0;
				text-align: center;
				font-size: 46rpx;
				color: #D55696;
				padding-left: 20rpx;
				padding-right: 20rpx;
				box-sizing: border-box;
				background-color: rgba(255,255,255,.5);
			}
			.desc {
				position: absolute;
				top: 80rpx;
				left: 0;
				right: 0;
				text-align: center;
				font-size: 28rpx;
				color: #333333;
				padding-left: 20rpx;
				padding-right: 20rpx;
				box-sizing: border-box;
				background-color: rgba(255,255,255,.5);
			}
			.price {
				position: absolute;
				bottom: 40rpx;
				left: 0;
				right: 0;
				display: flex;
				justify-content: center;
				&_btn {
					background-color: #D55696;
					border-radius: 40rpx;
					padding: 10rpx 20rpx;
					font-size: 28rpx;
					color: #ffffff;
					display: flex;
					justify-content: center;
					align-items: center;
					font-weight: 700;
					&_text {
						font-size: 38rpx;
					}
				}
			}
		}
	}
}
</style>